package stream;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author: David
 * @Date: 2021/7/10  16:18
 * @Version 1.0
 */
public class StreamTest {


    public static void main(String[] args) {
        List<Integer> collect = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 7, 7).stream().filter(p -> p > 5).distinct().collect(Collectors.toList());
        for (Integer integer : collect) {
            System.out.println("integer = " + integer);
        }
    }

}
